package ar.com.fiuba.RulesMgr.validationModes;

import java.util.List;

import ar.com.fiuba.RulesMgr.rules.CompositeRule;
import ar.com.fiuba.RulesMgr.rules.GenericRule;

/**
 * Validation mode where the order of the conditions does not affect the result
 * of the validation.
 * 
 */
public class UnorderedValidationMode implements ValidationMode {

	/**
	 * {@link ValidationMode#validate(GenericRule, List)}
	 */
	public Boolean validate(CompositeRule rule, List<Object> objects)  {
		return rule.validate(objects);
	}

}
